package com.java2007.hotel.service.impl;

import com.java2007.hotel.dao.OrderDetailDao;
import com.java2007.hotel.dao.impl.OrderDetailDaoImpl;
import com.java2007.hotel.pojo.OrderDetail;
import com.java2007.hotel.service.OrderDetailService;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Reckeys
 * @version V1.0
 * @date 2021/01/29
 **/
public class OrderDetailServiceImpl implements OrderDetailService {
    private OrderDetailDao orderDetailDao = new OrderDetailDaoImpl();


    /**
     * 通过订单id查询订单详情
     * @param detailOrderId
     * @return
     */
    @Override
    public List<OrderDetail> findOrderDetail(Long detailOrderId) throws SQLException {

        return orderDetailDao.findOrderDetail(detailOrderId);
    }
}
